import './App.css';
import React, { useState } from 'react';
import {
	BrowserRouter as Router,
	Routes,
	Route,
	Link
  } from 'react-router-dom';
import Login from './login';
import Chats from './ChatBox';
import HomePage from './Home.js'
import Newslabel from './Newslabel'
import User from './User.js'
import DailyNews from './DailyNews.js';
const App = () => (
	<>
	<Router>
	  <Routes>
		<Route path="/" element={<Login />} />
		<Route path="/home" element={<HomePage />} />
		<Route path="/chat" element={<Chats />} />
		<Route path="/label" element={<Newslabel />} />
		<Route path="/user" element={<User />} />
		<Route path="/daily" element={<DailyNews />} />
	  </Routes>
	</Router>
	</>
  );
  
  export default App;
